<template>
  <div class="content-right">
    <div class="info-top">
      <span class="title">告警历史分析</span>
    </div>
    <div class="contentBox">
      <div class="content-top">
        <div class="bnt-box">
          <div class="text">告警状态</div>
          <div class="select">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </div>
        </div>
        <div class="bnt-box Date-box">
          <div class="text">时间区间</div>
          <div class="DatePicker">
            <date-page />
          </div>
        </div>
        <div class="bnt-box">
          <div class="text">客户</div>
          <div class="select">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </div>
        </div>
      </div>
      <div class="w-content">
        <list-page />
      </div>
    </div>
  </div>
</template>

<script>
import DatePage from '../../common/components/Date'
import ListPage from './components/history-list'
export default {
  components: {
    DatePage,
    ListPage
  },
  data() {
    return {
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }, {
        value: '选项3',
        label: '蚵仔煎'
      }, {
        value: '选项4',
        label: '龙须面'
      }, {
        value: '选项5',
        label: '北京烤鸭'
      }],
      value: '',
      G2Data: [
        { name: '2016', value: 2 },
        { name: '2017', value: 1 },
        { name: '2018', value: 3 }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.content-right{
  width: 98%;
  height: 96%;
  border-radius: 4px;
  background-color: #FFFFFF;
  box-shadow: 0px 0px 8px 0px #ccc;
  overflow: hidden;
  .info-top{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: left;
    border-left: 8px solid #40e0ff;
    border-radius: 8px 8px 0 0;
    background: #f9f9f9;
    span{
      margin-left: .625rem;
      font-size: 1rem;
      color: #333;
    }
  }
  .contentBox{
    width: 98%;
    height: auto;
    margin: 0 auto;
    position: relative;
    .content-top{
      display: flex;
      flex-wrap: wrap;
      margin-top: 1.25rem;
      .bnt-box{
        width: 18.125rem;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius:8px;
        margin-right: 2%;
        background:#EDEDED;
        margin-bottom: .625rem;
        .text{
          width: 25%;
          font-size: .8125rem;
          text-align: center;
          color: #333333;
          font-family: 'Microsoft YaHei';
          letter-spacing: .0625rem;
          font-weight: 400;
        }
        .select{
          width: 75%;
          text-align: right;
        }
      }
      .Date-box{
        width: 26.25rem;
        margin-bottom: .625rem;
      }
    }
    .chart{
      width: 100%;
      height: auto;
      margin: 0 auto;
    }

  }

}
</style>
<style>
.contentBox .el-select .el-input.is-focus .el-input__inner{
  border-color: #ccc !important;
}
.contentBox .el-select .el-input__inner:focus {
  border-color: #ccc !important;
}
.contentBox .bnt-box .el-select{
  width: 100% !important;
}
</style>
